import request from "@/utils/request"
const commonPath = "/admin/product";
const SKU = {
  //根据spuid获取对应的sku列表 GET /admin/product/findBySpuId/{spuId}
  getSKUList:function (spuId){
    return request.get(`${commonPath}/findBySpuId/${spuId}`,)
  },

  //新增sku POST /admin/product/saveSkuInfo
  addSKU:function (skuInfo){
    return request.post(`${commonPath}/saveSkuInfo`,{
      ...skuInfo
    })
  }
}

export default SKU

